package com.smartlifev30.baiwei.adapter;

import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.smartlifev30.R;
import com.smartlifev30.baiwei.bean.Device;
import com.smartlifev30.baiwei.view.recyclerViewComponent.BaseAdapter;
import com.smartlifev30.baiwei.view.recyclerViewComponent.BaseViewHolder;

import java.util.ArrayList;
import java.util.List;

/**
 * 控制房间中设备
 * @author tys
 * @date 2018/8/17
 */

public class ControlRoomDeviceAdapter extends BaseAdapter<Device, ControlRoomDeviceAdapter.ViewHolder> {

    public ControlRoomDeviceAdapter(Context context, ArrayList<Device> mData) {
        super(context, mData);
    }

    @NonNull
    @Override
    public ControlRoomDeviceAdapter.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        return new ViewHolder(LayoutInflater.from(context).
                inflate(R.layout.control_room_device_item, parent, false));
    }

    @Override
    public void onBindViewHolder(@NonNull ControlRoomDeviceAdapter.ViewHolder holder, int position) {

    }

    class ViewHolder extends BaseViewHolder {

        ViewHolder(View itemView) {
            super(itemView);
        }
    }


    @Override
    public int getItemCount() {
        return 10;
    }
}
